from test.interface.HM import RequestMethod as request



def case1():

    path = '/mayson/v_1_1/intelligent_recommendation'

    data = {
	"userGuid": "1562317736217",
	"serialNumber": "1562317736217",
	"patientName": "tester",
	"doctorGuid": "0210497",
	"doctorName": "测试医生",
	"admissionTime": "2018-12-12",
	"inpatientDepartment": "心脏科",
	"pageSource": "2",
	"requestSource": "",
	"patientInfo": {
		"pregnancyStatus": "0",
		"gender": "1",
		"age": "19",
		"maritalStatus": "1",
		"ageType": "岁"
	},
	"physicalSign": {
		"bodyTempr": "",
		"heartRate": "",
		"lowBldPress": "",
		"highBldPress": ""
	},
	"definiteDiagnosis": [],
	"progressNoteList": [{
		"recordTime": "",
		"doctorGuid": "2222",
		"messageList": [{
			"value": "",
			"key": "主诉"
		}, {
			"value": "",
			"key": "诊断依据及鉴别诊断"
		}, {
			"value": "",
			"key": "现病史"
		}, {
			"value": "",
			"key": "既往史"
		}, {
			"value": "急性心肌梗死",
			"key": "主诊断"
		}, {
			"value": "急性心肌梗死",
			"key": "出院诊断"
		}, {
			"value": "",
			"key": "辅助检查"
		}],
		"msgType": "2",
		"progressType": "10",
		"progressGuid": "22222"
	}],
	"deleteProgressNoteList": [{
		"doctorGid": "",
		"progressType": "10",
		"progressGuid": "",
		"recordTime": ""
	}],
	"labTestList": [],
	"examinationList": [],
	"newTestList": [],
	"operationRecord": {},
	"prescriptions": {
		"prescriptionNumber": "",
		"drugList": [{
			"drugId": "",
			"specification": "",
			"dosage": "",
			"frequency": "",
			"drugName": "",
			"pathway": "",
			"unit": ""
		}],
		"recordTime": ""
	},
	"currentDiseaseName": "",
	"medicalOrders": {
		"orderId": "1562317736217",
		"orderContent": "阿托伐他汀钙片",
		"orderCode": "316275",
		"orderType": 3,
		"specification": "",
		"timelinessFlag": 2,
		"frequency": "ONCE",
		"orderFlag": 1,
		"dosage": "41",
		"pathway": "口服",
		"unit": "mg"
	}
}

    urlName = 'mayson_profile'

    headers = {

        "Content-Type": "application/json;charset=UTF-8",
         "Huimei_id": "7195F12825788F09375C2DB1E922F108"
    }

    re = request.reque

    res = re.post('',urlName,path,data,headers)

    print(res)

case1()